// import http from '../utils/http'
//手术间关联工作站
import request from '@/utils/request'

export function hasAllOR(params) {
    return request({
      url: '/TBaseAreaDevice/hasAll',
      method: 'get',
      params
    })
}
export function List(params) {
    return request({
      url: '/TBaseAreaDevice/hasAllToPage',
      method: 'get',
      params
    })
}
export function Add(data) {
    return request({
      url: '/TBaseAreaDevice/add',
      method: 'post',
      data
    })
}
export function Update(data) {
    return request({
      url: '/TBaseAreaDevice/update',
      method: 'post',
      data
    })
}
export function Delete(data) {
    return request({
      url: '/TBaseAreaDevice/delete',
      method: 'post',
      data
    })
}
export function hasAllDepId(params) {
  return request({
    url: '/TBaseAreaDevice/hasAllByDepId',
    method: 'get',
    params
  })
}

export function hasAllToPage(params) {
  return request({
    url: '/TBaseOperationSchedule/hasAllToPageByMSG',
    method: 'get',
    params
  })
}

export function notice(data) {
  return request({
    url: '/Task/operationNotice',
    method: 'post',
    data
  })
}

export function taskNoticeAdd(data) {
  return request({
    url: '/TTalkNotification/add',
    method: 'post',
    data
  })
}

export function queryTotalByTask(params) {
  return request({
    url: '/TBaseOperationSchedule/queryTotalByTask',
    method: 'get',
    params
  })
}
export function updateTaskProcess(data) {
  return request({
    url: '/TBaseTask/updateTaskProcess',
    method: 'post',
    data
  })
}
export function hasAllToPageByTask(params) {
  return request({
    url: '/TBaseOperationSchedule/hasAllToPageByTask',
    method: 'get',
    params
  })
}

//病区工作站列表
export function hasAllToPageByWid(params) {
  return request({
    url: '/TBaseOperationSchedule/hasAllToPageByWid',
    method: 'get',
    params
  })
}

//手术进程节点
export function SurgicalProgressRecord(params) {
  return request({
    url: '/SurgicalProgressRecord/search',
    method: 'get',
    params
  })
}
